<?php
namespace app\baseinfo\validate;

class Agent extends \app\common\validate\Base {
	protected $rule=[
		'serial_number|代理商序列号'=>'length:5,30',
		'name|代理商名称'=>'length:1,50',
		'type_id|类型'=>'check_id:AgentType',
		'area_id|代理区域id'=>'check_id:Area',
		'status|启用状态'=> 'regex:[01]'
	];
	protected $create_require=['serial_number','name','type_id','area_id'];
}
?>